package pers.lws.erp.service.impl;

import pers.lws.erp.entity.ProductionPlan;
import pers.lws.erp.mapper.ProductionPlanMapper;
import pers.lws.erp.service.IProductionPlanService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liuws
 * @since 2020-09-22
 */
@Service
public class ProductionPlanServiceImpl extends ServiceImpl<ProductionPlanMapper, ProductionPlan> implements IProductionPlanService {

    @Override
    public ProductionPlan getMaxId() {
        return baseMapper.getMaxId();
    }

    @Override
    public boolean updateCheckedStatus(String productionId, Integer checked) {
        return baseMapper.updateCheckedStatus(productionId, checked) > 0;
    }
}
